<template>
  <div>
    <a-card :bordered="false">
      <f-table ref="table" rowKey="sfinanceDetailsId" :columns="columns"  :multiple="false" :operator="operator" :params="queryParam" :api="api.bsd">
        <span slot="action" slot-scope="text, record">
        </span>
      </f-table>
      <bsd-drawer ref="drawer"></bsd-drawer>
    </a-card>
  </div>
</template>
<script>
  import bsdDrawer from './bsd_drawer.vue'
  import api from './js/api'
  export default {
    name: 'TableList',
    components: {
      bsdDrawer
    },
    data() {
      let me = this
      //操作按钮
      let operator = []
      return {
        api:  Object.assign(api, this.api),
        //列表初始化查询参数
        queryParam: {},
        // 表头
        columns: [
          {
            title: '#',
            width: '60',
            align: 'center',
            customRender: (text, record, index) => index + 1
          },
          {
            title: '对账表ID',
            align: 'center',
            dataIndex: 'sfinanceId'
          },
          {
            title: '订单ID',
            align: 'center',
            dataIndex: 'orderId'
          },
          {
            title: '订单明细ID',
            align: 'center',
            dataIndex: 'orderDetailsId'
          },
          {
            title: '单号',
            align: 'center',
            dataIndex: 'orderNo'
          },
          {
            title: '销售日期',
            align: 'center',
            dataIndex: 'saleDate'
          },
          {
            title: '部门名称',
            align: 'center',
            dataIndex: 'deptName'
          },
          {
            title: '业务员名称',
            align: 'center',
            dataIndex: 'saleManName'
          },
          {
            title: '购货方名称',
            align: 'center',
            dataIndex: 'customName'
          },
          {
            title: '药品名称',
            align: 'center',
            dataIndex: 'drugsName'
          },
          {
            title: '规格',
            align: 'center',
            dataIndex: 'drugsSpec'
          },
          {
            title: '数量',
            align: 'center',
            dataIndex: 'saleNum'
          },
          {
            title: '价格',
            align: 'center',
            dataIndex: 'salePrice'
          },
          {
            title: '成本价',
            align: 'center',
            dataIndex: 'costPrice'
          },
          {
            title: '成本金额',
            align: 'center',
            dataIndex: 'costAmount'
          },
          {
            title: '销售金额',
            align: 'center',
            dataIndex: 'saleAmount'
          },
          {
            title: '回款金额',
            align: 'center',
            dataIndex: 'returnAmount'
          },
          {
            title: '回款日期',
            align: 'center',
            dataIndex: 'returnDate'
          },
          {
            title: '公司垫款',
            align: 'center',
            dataIndex: 'supplierBondAmount'
          },
          {
            title: '垫款日期',
            align: 'center',
            dataIndex: 'supplierBondDate'
          },
          {
            title: '退款日期',
            align: 'center',
            dataIndex: 'returnSupplierBondDate'
          },
          {
            title: '供方高开税金',
            align: 'center',
            dataIndex: 'supplierGapUpTaxesAmount'
          },
          {
            title: '供方应返金额',
            align: 'center',
            dataIndex: 'supplierRetable'
          },
          {
            title: '供货方返款费率',
            align: 'center',
            dataIndex: 'supplierSettleRate'
          },
          {
            title: '供方已返金额',
            align: 'center',
            dataIndex: 'supplierRealAmount'
          },
          {
            title: '返款日期',
            align: 'center',
            dataIndex: 'supplierRealDate'
          },
          {
            title: '与供方开票金额',
            align: 'center',
            dataIndex: 'invoicePaymentAmount'
          },
          {
            title: '批号',
            align: 'center',
            dataIndex: 'drugsLotNo'
          },
          {
            title: '创建时间',
            align: 'center',
            dataIndex: 'createTime'
          },
          {
            title: '更新时间',
            align: 'center',
            dataIndex: 'updateTime'
          },
          {
            title: '操作',
            align: 'center',
            scopedSlots: { customRender: 'action' }
          }
        ],
        operator: operator
      }
    },
    created() {
    },
    methods: {
    }
  }
</script>
